-- GENERATED SPELL FOR [Bloodscalp Beastmaster] --


function spell0_699(pUnit, Event) --@Bloodscalp Pet,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(3612,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_699', 1, 1)
end

function spell1_699(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_699', 554, 1)
end

function spell2_699(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_699', 696, 1)
end

function Sorts_699(pUnit, Event)
local choix_sorts_699 = math.random(0, 2)
if choix_sorts_699 == 0 then
pUnit:RegisterEvent('spell0_699', 1, 1)
end
if choix_sorts_699 == 1 then
pUnit:RegisterEvent('spell1_699', 1, 1)
end
if choix_sorts_699 == 2 then
pUnit:RegisterEvent('spell2_699', 1, 1)
end
end

function mob699_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_699', math.random(1500, 3000), 1)
end

function mob699_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob699_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob699_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(699, 1, 'mob699_Action')
RegisterUnitEvent(699, 2, 'mob699_Leave')
RegisterUnitEvent(699, 3, 'mob699_Kill')
RegisterUnitEvent(699, 4, 'mob699_Die')
